﻿using System;
using System.Windows.Data;

namespace Shweet.Silverlight
{
    public class BindingDebugging : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            System.Diagnostics.Debug.WriteLine("UI updated"); //or add breakpoint here            
            return value;
        }
        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            System.Diagnostics.Debug.WriteLine("object updated"); //or add breakpoint here            
            return value;
        }
    }
}
